/*   1:    */ package com.atomikos.swing;
/*   2:    */ 
/*   3:    */ import java.util.Vector;
/*   4:    */ import javax.swing.table.AbstractTableModel;
/*   5:    */ import javax.swing.table.TableModel;
/*   6:    */ 
/*   7:    */ public abstract class AbstractPropertiesTableModel
/*   8:    */   extends AbstractTableModel
/*   9:    */   implements PropertiesTableModel
/*  10:    */ {
/*  11:    */   private Vector data_;
/*  12:    */   private String[] columnNames_;
/*  13:    */   
/*  14:    */   public AbstractPropertiesTableModel(Vector data, String[] columnNames)
/*  15:    */   {
/*  16:216 */     this.data_ = data;
/*  17:217 */     this.columnNames_ = columnNames;
/*  18:    */   }
/*  19:    */   
/*  20:    */   protected Vector getData()
/*  21:    */   {
/*  22:222 */     return this.data_;
/*  23:    */   }
/*  24:    */   
/*  25:    */   public TableModel getTableModel()
/*  26:    */   {
/*  27:231 */     return this;
/*  28:    */   }
/*  29:    */   
/*  30:    */   public int getRowCount()
/*  31:    */   {
/*  32:237 */     return this.data_.size();
/*  33:    */   }
/*  34:    */   
/*  35:    */   public int getColumnCount()
/*  36:    */   {
/*  37:243 */     return this.columnNames_.length;
/*  38:    */   }
/*  39:    */   
/*  40:    */   public abstract Object getValueAt(int paramInt1, int paramInt2);
/*  41:    */   
/*  42:    */   public String getColumnName(int col)
/*  43:    */   {
/*  44:251 */     return this.columnNames_[col];
/*  45:    */   }
/*  46:    */   
/*  47:    */   public boolean isCellEditable(int row, int col)
/*  48:    */   {
/*  49:256 */     return false;
/*  50:    */   }
/*  51:    */   
/*  52:    */   public void rowDeleted(int row)
/*  53:    */   {
/*  54:265 */     fireTableRowsDeleted(row, row);
/*  55:    */   }
/*  56:    */   
/*  57:    */   public void refresh()
/*  58:    */   {
/*  59:274 */     fireTableRowsUpdated(0, this.data_.size());
/*  60:    */   }
/*  61:    */   
/*  62:    */   public void rowInserted()
/*  63:    */   {
/*  64:283 */     fireTableRowsInserted(0, this.data_.size());
/*  65:    */   }
/*  66:    */ }


/* Location:           C:\myfile\mysoft\apache-maven-3.5.0-bin\apache-maven-3.5.0\myrep\com\atomikos\atomikos-util\3.7.0\atomikos-util-3.7.0.jar
 * Qualified Name:     com.atomikos.swing.AbstractPropertiesTableModel
 * JD-Core Version:    0.7.0.1
 */